<?php
/**
 * HTML header for the system
 *
 * @version 0.1 
 * @license MIT License http://www.opensource.org/licenses/mit-license.php
 * @copyright (c) 2007 Geir Arne Brevik
 * @author Geir Arne Brevik
 */
if (!defined('MB')) { header('Location:./'); } // prevent direct access to this file
?>
<h1>MiniBlog</h1>
<ul>
	<li><a href="./">Frontpage</a></li>
	<li><a href="./?show=all">See all posts by all authors</a></li>
	<li><a href="save.php">Create new post</a></li>
	<li><a href="edit.php">Edit your posts</a></li>
	<li><a href="edit-frontpage.php">Promote to frontpage</a></li>
</ul>
<?php
// list link to bloggers
$bloggers = MiniBlog::getAuthors();
if($bloggers){
	?><h4>Authors</h4>
	<ul><?php
	foreach($bloggers as $blogger){
		?><li><a href="./?u=<?php echo($blogger); ?>" title="<?php printf('See all blogposts by %s', $blogger); ?>"><?php echo($blogger); ?></a></li><?php
	}
	?></ul><?php
}

?>
<h2><?php echo($doc_title); ?></h2>